package main

import (
	. "github.com/lxn/walk/declarative"
)

func main() {

	_, err := MainWindow{
		Title:  "SCREAMO",
		Size:   Size{800, 600},
		Layout: VBox{},
		Children: []Widget{
			PushButton{
				Text: "Button1",
			},
			RadioButton{
				Text: "RadioButton1",
			},
			CheckBox{
				Text: "CheckBox1",
			},
			ComboBox{
				Model: []string{"ComboBox1", "ComboBox2"},
			},
			LineEdit{
				TextAlignment: Alignment1D(AlignHFarVNear),
				ReadOnly:      true,
				PasswordMode:  true,
			},
			TextEdit{},
			NumberEdit{
				SpinButtonsVisible: true,
				MaxValue:           100,
				MinValue:           0,
				Value:              50,
				Suffix:             " %",
			},
			DateEdit{},
			Slider{},
			Slider{
				Orientation: Orientation(Vertical),
			},
			Label{
				Text: "la\nnan",
			},
		},
	}.Run()
	if err != nil {
		panic(err)
	}
}
